package com.rds.system.domain;

import com.rds.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 历史记录表-实体类
 * @version : 1.0
 * @Copyright: Copyright(c) 2020-2021 All right reserved
 * @Company: GUANGZHOU RDS Co.,LTD
 * @author: LiChuanlong
 * @create Date : 2021/12/13 : 22:09
 */
public class SysHistory extends BaseEntity {

    /*Id**/
    private Long Id;
    /*业务对象Id**/
    private Long businessId;
    /*操作类型**/
    private String operateAction;
    /*操作者**/
    private String operateUser;
    /*业务对象状态Id**/
    private Integer stateid;
    /*操作记录**/
    private String operateRecord;
    /*历史记录范围**/
    private Integer operateScope;
    /*所属模块**/
    private String modular;


    public SysHistory(){}

    public SysHistory(Long businessId,String operateAction,String modular){
        this.businessId = businessId;
        this.operateAction = operateAction;
        this.modular = modular;
    }

    public SysHistory(Long businessId,String operateUser, String operateAction,Integer stateid,Integer operateScope,String operateRecord,String modular){
        this.businessId = businessId;
        this.operateUser = operateUser;
        this.operateAction = operateAction;
        this.stateid = stateid;
        this.operateScope = operateScope;
        this.operateRecord = operateRecord;
        this.modular = modular;
    }

    public Long getId() {
        return Id;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public String getOperateAction() {
        return operateAction;
    }

    public String getOperateUser() {
        return operateUser;
    }

    public String getOperateRecord() {
        return operateRecord;
    }

    public Integer getOperateScope() {
        return operateScope;
    }

    public String getModular() {
        return modular;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public void setOperateAction(String operateAction) {
        this.operateAction = operateAction;
    }

    public void setOperateUser(String operateUser) {
        this.operateUser = operateUser;
    }

    public Integer getStateid() {
        return stateid;
    }

    public void setStateid(Integer stateid) {
        this.stateid = stateid;
    }

    public void setOperateRecord(String operateRecord) {
        this.operateRecord = operateRecord;
    }

    public void setOperateScope(Integer operateScope) {
        this.operateScope = operateScope;
    }

    public void setModular(String modular) {
        this.modular = modular;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("businessId",getBusinessId())
                .append("operateAction",getOperateAction())
                .append("operateUser",getOperateUser())
                .append("businessStateId",getStateid())
                .append("operateTime",getCreateTime())
                .append("operateRecord",getOperateRecord())
                .append("operateScope",getOperateRecord())
                .append("modular",getModular())
                .toString();
    }
}
